<script>
export default {
    name: "App",
    data(){
        return {
            goodsList:[
                {
                    id:1,
                    goodsName:"梨",
                    goodsPrice:100,
                    addTime:Date.now()
                },
                {
                    id:2,
                    goodsName:"橘子",
                    goodsPrice:200,
                    addTime:Date.now()-99999
                }
            ]
        }
    }
}
</script>

<template>
    <div>
        <h3>App</h3>
        <div v-for="item in goodsList" :key="item.id">
            <p>商品的名称：{{item.goodsName}}</p>
            <p>商品的价格：{{item.goodsPrice | currency}}</p>
            <p>上架时间：{{item.addTime | date}}</p>
            <hr/>
        </div>
    </div>
</template>

<style scoped>

</style>